/* =============================================
   El Mizan — Expenses Allocation Page
   Same palette as Homepage:
   --green-dark:  #1a4d2e
   --green-mid:   #2e7d4f
   --green-light: #a8d5b5
   --gold:        #c9a84c
   --gold-light:  #e8d49a
   --surface:     #f4f9f6
   --dark:        #0f2d1c
============================================= */
.group {
  display: flex;
  line-height: 28px;
  align-items: center;
  position: relative;
  max-width: 220px;
}

.input {
  width: 100%;
  height: 40px;
  line-height: 28px;
  padding: 0 1rem;
  padding-left: 2.5rem;
  border: 2px solid transparent;
  border-radius: 8px;
  outline: none;
  background-color: rgba(255,255,255,0.12);
  color: var(--white);
  transition: 0.3s ease;
}

.input::placeholder { color: rgba(255,255,255,0.5); }

.input:focus,
.input:hover {
  outline: none;
  border-color: var(--gold);
  background-color: rgba(255,255,255,0.18);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.15);
}

.icon {
  position: absolute;
  left: 1rem;
  fill: rgba(255,255,255,0.5);
  width: 1rem;
  height: 1rem;
}

:root {
  --green-dark:  #1a4d2e;
  --green-mid:   #2e7d4f;
  --green-light: #a8d5b5;
  --gold:        #c9a84c;
  --gold-light:  #e8d49a;
  --surface:     #f4f9f6;
  --dark:        #0f2d1c;
  --white:       #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--surface);   /* كان #FEF3E2 كريمي — بقى أخضر فاتح */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── NAVBAR ────────────────────────────────── */
.navbar {
  background-color: rgba(15, 45, 28, 0.92);   /* أخضر غامق زي Homepage */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .navbar-brand,
.navbar .fa-scale-balanced {
  color: var(--gold) !important;
  font-weight: 700;
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  transition: 0.3s;
  font-weight: 500;
  opacity: 1;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  background-color: var(--green-mid);
  color: var(--white) !important;
  opacity: 1;
}

.dropdown-menu {
  background-color: var(--dark);
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.dropdown-item {
  color: var(--gold-light);
  font-weight: bold;
  transition: 0.3s all ease-in-out;
}

.dropdown-item:hover {
  color: var(--white);
  background-color: var(--green-mid);
}

.navbar .btn-success {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
  font-weight: 700;
  transition: 0.3s;
}

.navbar .btn-success:hover {
  background-color: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--dark);
}

/* ── MAIN CONTENT ──────────────────────────── */
main {
  flex: 1;
  padding: 30px 20px 50px;
}

#h1 {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 16px;
  color: var(--green-dark);   /* كان #2c2c2c — بقى أخضر غامق */
}

/* Balance display box */
#div1 {
  background-color: var(--green-light);   /* كان #BEC6A0 — بقى أخضر فاتح متناسق */
  border-radius: 0px 50px 50px 50px;
  width: 520px;
  max-width: 90%;
  margin: 0 auto 20px;
  padding: 14px 20px;
  text-align: center;
  font-size: 1rem;
  color: var(--dark);
}

/* Money amount circle */
#div2 {
  background-color: var(--green-mid);    /* كان #708871 — بقى أخضر وسط */
  border-radius: 35%;
  height: 70px;
  width: 200px;
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#money {
  font-size: 36px;
  font-weight: bold;
  color: var(--gold);    /* gold بدل أبيض عشان يبرز أكتر */
  text-align: center;
}

/* ── EXPENSE CARDS ─────────────────────────── */
#bigdiv {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.expense-card {
  height: 380px;
  width: 300px;
  border: 7px solid var(--green-dark);   /* كان border أسود — بقى أخضر غامق */
  border-radius: 25%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  gap: 10px;
  text-align: center;
  background-color: var(--white);
  transition: 0.3s;
}

.expense-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26, 77, 46, 0.15);
}

.expense-card h3 {
  font-size: 1rem;
  font-weight: bold;
  color: var(--green-dark);    /* كان #2c2c2c */
}

.expense-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #3a3a3a;
}

/* ── PROGRESS RINGS ────────────────────────── */
.progress-ring {
  height: 100px;
  width: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.progress-inner {
  background-color: var(--surface);   /* كان #FEF3E2 — بقى surface متناسق */
  height: 78px;
  width: 78px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
  color: var(--green-dark);
}

/* ألوان الـ progress rings بقت أخضر البراند بدل #4caf50 */
#progress1 { background: conic-gradient(var(--green-mid) 0% 50%, #ddd 50% 100%); }
#progress2 { background: conic-gradient(var(--green-mid) 0% 30%, #ddd 30% 100%); }
#progress3 { background: conic-gradient(var(--green-mid) 0% 20%, #ddd 20% 100%); }

.salary-share {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--green-mid);    /* كان #708871 — بقى أخضر وسط */
}

/* ── FOOTER ────────────────────────────────── */
.footer {
      background: #080f0b;
      border-top: 1px solid rgba(201,168,76,0.25);
      padding: 36px 0 24px;
      text-align: center;
    }
    .footer-brand { font-family: 'Playwrite IE', cursive; font-size: 20px; color: #c9a84c; letter-spacing: 2px; margin-bottom: 4px; }
    .footer-tagline { font-size: 12px; color: rgba(255,255,255,0.3); margin-bottom: 20px; }
    .footer-socials { display: flex; justify-content: center; gap: 12px; margin-bottom: 20px; }
    .footer-social {
      width: 38px; height: 38px;
      border-radius: 10px;
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.08);
      color: rgba(255,255,255,0.5);
      display: flex; align-items: center; justify-content: center;
      font-size: 16px;
      text-decoration: none;
      transition: 0.25s;
    }
    .footer-social:hover { transform: translateY(-2px); }
    #f-twitter:hover  { background: rgba(29,161,242,0.15); color: #1da1f2; border-color: rgba(29,161,242,0.3); }
    #f-linkedin:hover { background: rgba(0,119,181,0.15); color: #0077b5; border-color: rgba(0,119,181,0.3); }
    #f-youtube:hover  { background: rgba(255,0,0,0.15); color: #ff4444; border-color: rgba(255,0,0,0.3); }
    #f-facebook:hover { background: rgba(24,119,242,0.15); color: #1877f2; border-color: rgba(24,119,242,0.3); }
    .footer-copy { font-size: 12px; color: rgba(255,255,255,0.2); }
    .footer-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 20px auto; width: 120px; }
button,
button:focus {
  font-size: 10px;
  padding: 5px 15px;
  border-radius: 0.7rem;
  background-image: linear-gradient(rgb(46, 125, 79), rgb(46, 125, 79));
  border: 2px solid rgb(50, 50, 50);
  border-bottom: 5px solid rgb(50, 50, 50);
  box-shadow: 0px 1px 6px 0px green;
  transform: translate(-3px, -3px);
  cursor: pointer;
  transition: 0.2s;
  transition-timing-function: linear;
  color:white;
}

button:active {
  transform: translate(0, 0);
  border-bottom: 2px solid rgb(50, 50, 50);
}
